﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace iS3.Server.MetaConfig.Models
{
    //基础元数据定义
    /// <remarks></remarks>
    public class BaseMate
    {
        // 属性名称
        public string propertyName { get; set; }

        // 属性数据类型
        public string dataType { get; set; }
        public string rawDataType { get; set; }
        public string rawDataTypeParam { get; set; }

        // 属性描述
        public string description { get; set; }

        // 属性是否可以为空
        public bool nullable { get; set; }


        public LangDict langDict { get; set; }

        // 正则表达式校验
        public string regularExp { get; set; }

        public string Purpose { get; set; }

        public BaseMate(string propertyName, string dataType, string description, bool nullable, LangDict langDict, string regularExp = "", string Purpose = "", string rawDataType = "", string rawDataTypeParam = null)
        {
            this.propertyName = propertyName;
            this.dataType = dataType;
            this.description = description;
            this.nullable = nullable;
            this.langDict = langDict;
            this.regularExp = regularExp;
            this.Purpose = Purpose;
            this.rawDataType = rawDataType;
            this.rawDataTypeParam = rawDataTypeParam;
        }
    }
}
